﻿using System.Web.Mvc;

namespace SlamCms.Web.Mvc
{
	public class PartialJavascriptViewResult : PartialViewResult
	{
		public override void ExecuteResult(ControllerContext context)
		{
			if (!context.IsChildAction)
				context.HttpContext.Response.ContentType = "application/javascript";

			base.ExecuteResult(context);
		}
	}
}
